package com.cgc.venus.server.ci.model.vo;

import com.cgc.venus.server.ci.model.entity.CiPipeline;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

/**
 * Created by 业哥 on 2018/11/13.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({}) //需要忽略的属性，请添加在{}内，多个使用请“,”号隔开
public class PipelineVO extends CiPipeline {
    private List<PipelineParaVO> pps;
    private List<PipelineStageVO> pss;

    private String lastBuildResult="未执行";//上次构建结果
    private Long lastBuildDuration= Long.valueOf(0);//上次构建持续时间
    private Integer lastBuildNum=0;//上次构建次数
    private String lastBuildTime="";//上次构建时间

    public List<PipelineParaVO> getPps() {
        return pps;
    }

    public void setPps(List<PipelineParaVO> pps) {
        this.pps = pps;
    }

    public List<PipelineStageVO> getPss() {
        return pss;
    }

    public void setPss(List<PipelineStageVO> pss) {
        this.pss = pss;
    }

    public String getLastBuildResult() {
        return lastBuildResult;
    }

    public void setLastBuildResult(String lastBuildResult) {
        this.lastBuildResult = lastBuildResult;
    }

    public Long getLastBuildDuration() {
        return lastBuildDuration;
    }

    public void setLastBuildDuration(Long lastBuildDuration) {
        this.lastBuildDuration = lastBuildDuration;
    }

    public Integer getLastBuildNum() {
        return lastBuildNum;
    }

    public void setLastBuildNum(Integer lastBuildNum) {
        this.lastBuildNum = lastBuildNum;
    }

    public String getLastBuildTime() {
        return lastBuildTime;
    }

    public void setLastBuildTime(String lastBuildTime) {
        this.lastBuildTime = lastBuildTime;
    }
}
